import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: '/',
    breadcrumbName : '首页',
    //component: Home
    component: () => import(/* webpackChunkName: "about" */ '../pages/Factory.vue')

  },
  {
    path: '/web-list',
    name: 'web-list',
    breadcrumbName : '网站列表',
    component: () => import(/* webpackChunkName: "about" */ '../pages/List.vue')
  },
  {
    path: '/data',
    name: 'data',
    breadcrumbName : '数据',
    component: () => import(/* webpackChunkName: "about" */ '../pages/Data.vue')
  }
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router
